﻿<%@ Page language="c#" Codebehind="MemberListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.MemberListView" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>MemberListView</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<style type="text/css">
table {
	width:100%;
	border:none;
}
table th {
	background:#ccccff;
}
table th, table td {
	padding:3px;
}
table td span a, table td span a:visited {
	color:#fff;
}
.active1 {
	background:#1a499d;
}
.active2 {
	background:#337fb2;
	color:#fff;
	font-weight:bold;
}
.tabnavhead {
	text-align:right;
	position:relative;
}
.tnc {
	float:left;
	width:90px;
	height:30px;
	margin:0 0 0 5px;
	position:relative;
	bottom:0px;
}
.tnc a {
	width:90px;
	height:26px;
	display:block;
	padding:4px 0 0;
	text-align:center;
	line-height:26px;
	color:#fff;
}
.tnc a:visited {
	color:#fff;
}
.tnc a:hover {
	color:#ff0;
}
.path .right {
	padding:6px 0 0;
}
.redButtonCss {
    font-family: "Tahoma", "宋体";
    font-size: 9pt; color: #0066cc;
    border: 1px #93bee2 solid;
    background-image:url(/Images/redbuttonbg.gif);
    background-color: #fff;
	cursor:pointer;
    font-style: normal ;
}
</style>
</head>
<body>
<form id="MemberListView" method="post" runat="server">
<div class="m">
  <div class="path">
    <a href="/SubModule/UnitiveDocument/">我的桌面</a> >> 显示组员</div>
    <div class="con">
    <div class="tabnav">
            <p class="tabnavhead"> <span id="Span1" class="<% Response.Write(DisplayType=="0"?"active2":"active1"); %> tnc"> <a href="MemberListView.aspx?TeamID=<%=ClassID%>">项目成员</a> </span> <span id="Span2" class="<% Response.Write(DisplayType=="1"?"active2":"active1"); %> tnc"> <a href="MemberListView.aspx?TeamID=<%=ClassID%>&amp;DisplayType=1">非成员</a> </span> <span id="Span3" class="<% Response.Write(DisplayType=="2"?"active2":"active1"); %> tnc"> <a href="MemberListView.aspx?TeamID=<%=ClassID%>&amp;DisplayType=2">订阅人</a> </span>
            &nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="TxbReceiver" runat="server"></asp:TextBox>&nbsp;&nbsp;<asp:Button ID="BtnReceiver" runat="server"   class="redButtonCss" style="width: 60px; height: 20px" Text="查询" OnClick="BtnReceiver_Click" />&nbsp;&nbsp;<asp:CheckBox id="cbRemind" runat="server" Text="提醒本人及小组成员" Width="146px" ></asp:CheckBox><input type=button onclick="javascript:self.location='Switch.aspx?Action=1&amp;ClassID=<%=ClassID%>'" value="返回" class=redButtonCss><asp:Button id="cmdDelete" runat="server" Text="脱离组" CssClass="redbuttoncss"></asp:Button><asp:Button id="btnLeader" runat="server" CssClass="redButtonCss" Text="设置为组长"></asp:Button><asp:Button id="btnAdd" runat="server" CssClass="redButtonCss" Text="加入组"></asp:Button>
            </p>
          </div>
            <div>
			<asp:datagrid id="dgMemberList" runat="server" DataKeyField="staff_id" OnPageIndexChanged="DataGrid_PageChanged" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages" AllowPaging="True" AutoGenerateColumns="False" AllowSorting="True" Width="100%" BorderWidth="1px" CellPadding="3" PageSize="15" BorderColor="#337FB2">
	<AlternatingItemStyle  BackColor="#E8F4FF"></AlternatingItemStyle>
	<HeaderStyle  HorizontalAlign="Center" Height="10px" ForeColor="White" VerticalAlign="Top" BackColor="#337FB2"></HeaderStyle>
	<FooterStyle  HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
	<Columns>
		<asp:TemplateColumn HeaderText="选择">
			<ItemStyle  HorizontalAlign="Center" Height="20px" Width="60px"></ItemStyle>
			<ItemTemplate>
				<asp:CheckBox id="grpMailID" Checked="False" Runat="server"></asp:CheckBox>
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:TemplateColumn HeaderText="ID">
			<ItemStyle ></ItemStyle>
			<ItemTemplate>
				<a href='DisplayStaffInfo.aspx?StaffID=<%# DataBinder.Eval(Container.DataItem,"staff_id") %>'>
					<%# DataBinder.Eval(Container.DataItem,"Staff_Name") %>
				</a>
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:BoundColumn DataField="RealName" HeaderText="真实姓名">
			<ItemStyle ></ItemStyle>
		</asp:BoundColumn>
		<asp:TemplateColumn HeaderText="身份">
			<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
			<ItemStyle  HorizontalAlign="Left"></ItemStyle>
			<ItemTemplate>
				<asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.RealName").ToString()=="1"?"组长":"成员" %>'>
				</asp:Label>
			</ItemTemplate>
		</asp:TemplateColumn>
		<asp:BoundColumn DataField="position_name" HeaderText="所任职位">
			<ItemStyle  HorizontalAlign="Right"></ItemStyle>
			<FooterStyle ></FooterStyle>
		</asp:BoundColumn>
	</Columns>
	<PagerStyle  BorderColor="#E0E0E0" BorderStyle="Dotted" HorizontalAlign="Right"
		BackColor="#E8F4FF" Mode="NumericPages"></PagerStyle>
</asp:datagrid>
    </div>
  </div>
</div>
</form>
</body>
</html>
